import {IComponent} from "@/types/AllData";
import {PageStack} from "@/types/AllDataObj";

export default function (target:IComponent,value:any,aTag = ''){
    if (target.currentTabComponent!=value)
        PageStack.push(target.currentTabComponent)
    target.currentTabComponent = value
    target.tag = aTag
    return target
}